﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004D3 RID: 1235
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EvolveBuildShopAbilityDownScRsp : IMessage<EvolveBuildShopAbilityDownScRsp>, IMessage, IEquatable<EvolveBuildShopAbilityDownScRsp>, IDeepCloneable<EvolveBuildShopAbilityDownScRsp>, IBufferMessage
	{
		// Token: 0x17001003 RID: 4099
		// (get) Token: 0x060037DE RID: 14302 RVA: 0x0009A245 File Offset: 0x00098445
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EvolveBuildShopAbilityDownScRsp> Parser
		{
			get
			{
				return EvolveBuildShopAbilityDownScRsp._parser;
			}
		}

		// Token: 0x17001004 RID: 4100
		// (get) Token: 0x060037DF RID: 14303 RVA: 0x0009A24C File Offset: 0x0009844C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EvolveBuildShopAbilityDownScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001005 RID: 4101
		// (get) Token: 0x060037E0 RID: 14304 RVA: 0x0009A25E File Offset: 0x0009845E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EvolveBuildShopAbilityDownScRsp.Descriptor;
			}
		}

		// Token: 0x060037E1 RID: 14305 RVA: 0x0009A265 File Offset: 0x00098465
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopAbilityDownScRsp()
		{
		}

		// Token: 0x060037E2 RID: 14306 RVA: 0x0009A26D File Offset: 0x0009846D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopAbilityDownScRsp(EvolveBuildShopAbilityDownScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.shopSkillId_ = other.shopSkillId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060037E3 RID: 14307 RVA: 0x0009A2AA File Offset: 0x000984AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopAbilityDownScRsp Clone()
		{
			return new EvolveBuildShopAbilityDownScRsp(this);
		}

		// Token: 0x17001006 RID: 4102
		// (get) Token: 0x060037E4 RID: 14308 RVA: 0x0009A2B2 File Offset: 0x000984B2
		// (set) Token: 0x060037E5 RID: 14309 RVA: 0x0009A2BA File Offset: 0x000984BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001007 RID: 4103
		// (get) Token: 0x060037E6 RID: 14310 RVA: 0x0009A2C3 File Offset: 0x000984C3
		// (set) Token: 0x060037E7 RID: 14311 RVA: 0x0009A2CB File Offset: 0x000984CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopSkillId
		{
			get
			{
				return this.shopSkillId_;
			}
			set
			{
				this.shopSkillId_ = value;
			}
		}

		// Token: 0x17001008 RID: 4104
		// (get) Token: 0x060037E8 RID: 14312 RVA: 0x0009A2D4 File Offset: 0x000984D4
		// (set) Token: 0x060037E9 RID: 14313 RVA: 0x0009A2DC File Offset: 0x000984DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x060037EA RID: 14314 RVA: 0x0009A2E5 File Offset: 0x000984E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EvolveBuildShopAbilityDownScRsp);
		}

		// Token: 0x060037EB RID: 14315 RVA: 0x0009A2F4 File Offset: 0x000984F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EvolveBuildShopAbilityDownScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.ShopSkillId == other.ShopSkillId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060037EC RID: 14316 RVA: 0x0009A350 File Offset: 0x00098550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ShopSkillId != 0U)
			{
				num ^= this.ShopSkillId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060037ED RID: 14317 RVA: 0x0009A3C1 File Offset: 0x000985C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060037EE RID: 14318 RVA: 0x0009A3C9 File Offset: 0x000985C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060037EF RID: 14319 RVA: 0x0009A3D4 File Offset: 0x000985D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Level);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ShopSkillId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ShopSkillId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060037F0 RID: 14320 RVA: 0x0009A448 File Offset: 0x00098648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ShopSkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopSkillId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060037F1 RID: 14321 RVA: 0x0009A4B8 File Offset: 0x000986B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EvolveBuildShopAbilityDownScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ShopSkillId != 0U)
			{
				this.ShopSkillId = other.ShopSkillId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060037F2 RID: 14322 RVA: 0x0009A51C File Offset: 0x0009871C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060037F3 RID: 14323 RVA: 0x0009A528 File Offset: 0x00098728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ShopSkillId = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400160B RID: 5643
		private static readonly MessageParser<EvolveBuildShopAbilityDownScRsp> _parser = new MessageParser<EvolveBuildShopAbilityDownScRsp>(() => new EvolveBuildShopAbilityDownScRsp());

		// Token: 0x0400160C RID: 5644
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400160D RID: 5645
		public const int RetcodeFieldNumber = 9;

		// Token: 0x0400160E RID: 5646
		private uint retcode_;

		// Token: 0x0400160F RID: 5647
		public const int ShopSkillIdFieldNumber = 15;

		// Token: 0x04001610 RID: 5648
		private uint shopSkillId_;

		// Token: 0x04001611 RID: 5649
		public const int LevelFieldNumber = 1;

		// Token: 0x04001612 RID: 5650
		private uint level_;
	}
}
